# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Julian <juw@posteo.de>
pkgname=brightnessctl
pkgver=0.5.1
pkgrel=1
pkgdesc="Program to read and control device brightness"
options="!check" # No testsuite
url="https://github.com/Hummer12007/brightnessctl"
arch="all"
license="MIT"
subpackages="$pkgname-doc"
install="$pkgname.post-install"
source="$pkgname-$pkgver.tar.gz::https://github.com/Hummer12007/brightnessctl/archive/$pkgver.tar.gz"

build() {
	make INSTALL_UDEV_RULES=1
}

package() {
	make install DESTDIR="$pkgdir" INSTALL_UDEV_RULES=1
}

sha512sums="41ac86357b3b5a3d54a043140a6bdb1fb68d5080a16e86692059ad58f4b9134a8532432a3f664c70c665a4ad73ea8a94cc9b88fa84abc28f0356b8b397aaebc7  brightnessctl-0.5.1.tar.gz"
